﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminMaster.Master"
    Inherits="System.Web.Mvc.ViewPage<VietThuongLMS.Areas.Admin.Models.DoanhThuModel>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftAjax.js") %>"></script>
    <script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftMvcValidation.js") %>"></script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <legend>
        <h2>
            Tạo phiếu thu/chi</h2>
    </legend>
    <% using (Html.BeginForm("Create", "BaoCaoThongKe", new { area = "Admin" }, FormMethod.Post, new { @class = "form-horizontal", @id = "formNew", @name = "formNew", enctype = "multipart/form-data" }))
       {
    %>
    <div class="control-group">
        <label class="control-label" for="AdminContent">
            Chi nhánh:</label>
        <div class="controls">
            <%= Html.DropDownList("MaChiNhanh", (SelectList)ViewData["CBChiNhanh"])%>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="strFrom">
            Ngày :</label>
        <div class="controls">
            <%: Html.TextBoxFor(t => t.Ngay, new { @class = "h30", @Value = DateTime.Now.ToString("dd/MM/yyyy") })%>
            <%: Html.ValidationMessageFor(m => m.Ngay)%>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="strFrom">
            Thu :</label>
        <div class="controls">
            <%: Html.TextBoxFor(t => t.TienThu, new { @class = "h30", @Value = "0" })%>
            <%: Html.ValidationMessageFor(m => m.TienThu)%>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="strFrom">
            Chi :</label>
        <div class="controls">
            <%: Html.TextBoxFor(t => t.TienChi, new { @class = "h30", @Value = "0" })%>
            <%: Html.ValidationMessageFor(m => m.TienChi)%>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="strFrom">
            Nội Dung :</label>
        <div class="controls">
            <%: Html.TextBoxFor(t => t.LyDo, new { @class = "h30"})%>
            <%: Html.ValidationMessageFor(m => m.LyDo)%>
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <button id="btnCreate" name="btnCreate" type="submit" class="btn btn-primary">
                Tạo phiếu</button>
        </div>
    </div>
    <% } %>
    <div class="btn btn-primary">
        <a href="<%=ResolveUrl("~/Admin/BaoCaoThongKe/PhieuThuChi") %>">
            <button class="btn btn-primary">
                <i class="icon-reply"></i>Quay lại danh sách
            </button>
        </a>
    </div>
</asp:Content>
